package com.tanhua.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bilibili.model.db.Analysis;
import org.apache.ibatis.annotations.Select;

/**
 * @author HuangRongFu
 * 2021/11/30 星期二11:51 上午
 */


public interface AnalysisMapper extends BaseMapper<Analysis> {

    @Select("select * from tb_analysis_by_day where record_date = #{date}")
    Analysis findByRecordDate(String date);

    @Select("select sum(num_registered) from tb_analysis_by_day")
    Long totalUser();

    Long sumAnalysisData(String num_registered, String date, String toDate);
}
